package com.lanou.utp.mapper;

import com.lanou.utp.entity.Student;
import com.lanou.utp.entity.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author MaQingYun
 */
@Mapper
public interface TaskMapper {

    List<Student> getTasks(Long id);

    List<Task> getTaskList(Long id);

    void addTask(Task task);

    int insertTaskGradeItem(@Param("task") Task task);

    void insertTaskRole(@Param("task") Task task);

    void insertTaskStudent(@Param("id") Long id, @Param("studentIds") List<Long> studentIds);

    void insertTaskWarningPlan(@Param("taskId") Long taskId, @Param("signinWarning") Long getSigninWarning, @Param("logWarning") Long getLogWarning);

    void insertSignInData(@Param("taskId") Long taskId, @Param("insertSignInDatalist") List<Date> insertSignInDatalist);

}
